/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.common.utils.exception;

/**
 * xxx
 *
 * @author Wangyi
 * @version v1.0
 *
 * @date 2013-8-28
 *
 */
public class RemoteInvokeException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7306690561103301539L;
	private final InterSystemExceptionSpec exceptionSpec;
	
	/**
	 * 
	 */
	public RemoteInvokeException(InterSystemExceptionSpec exceptionSpec) {
		this.exceptionSpec=exceptionSpec;
	}

	/**
	 * @return the exceptionSpec
	 */
	public InterSystemExceptionSpec getExceptionSpec() {
		return exceptionSpec;
	}

	@Override
	public String getMessage() {
		return this.exceptionSpec.toString();
	}
}
